import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: require('../views/index.vue'),
      redirect: '/home',
      children: [{
        path: '/home',
        name: 'home',
        component: require('../views/home/home.vue')
      }, {
        path: '/rank',
        name: 'rank',
        component: require('../views/rank/rank.vue')
      }, {
        path: '/plist',
        name: 'plist',
        component: require('../views/plist/plist.vue')
      }, {
        path: '/singer',
        name: 'singer',
        component: require('../views/singer/singer.vue')
      }
      ]
    },
    {
      path: '*', redirect: '/index'
    }
  ]
})
